import 'package:flutter_house_manager/constants/index.dart';
import 'package:flutter_house_manager/utils/RequestDio.dart';

Future<dynamic> sendCodeAPI(params) =>
    dioRequest.get(HTTP_PATH.SEND_CODE, params: params);
//登录
Future<dynamic> loginApi(params) =>
    dioRequest.post(HTTP_PATH.LOGIN, data: params);
Future<dynamic> getUserInfoAPI() => dioRequest.get(HTTP_PATH.USER_INFO);
Future updateUserInfoAPI(data) =>
    dioRequest.put(HTTP_PATH.USER_INFO, data: data);
